package singleton;

/**
 * @author shenhan
 * @create 2020/3/18 22:26
 * @description 静态内部类
 */
public class Singleton6 {
    private Singleton6() {

    }

    private static class SingletonInstance {
        private static final Singleton6 INSTANCE = new Singleton6();
    }

    public static Singleton6 getInstance() {
        return SingletonInstance.INSTANCE;
    }
}
